from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
_magic_number = 2
_modified_time = 1182372093.1891191
_template_filename='/Users/keningle/Documents/workspace/PylonsProjects/hitlist/hitlist/templates/todo.mako'
_template_uri='/todo.mako'
_template_cache=cache.Cache(__name__, _modified_time)
_source_encoding=None
_exports = []


def _mako_get_namespace(context, name):
    try:
        return context.namespaces[(__name__, name)]
    except KeyError:
        _mako_generate_namespaces(context)
        return context.namespaces[(__name__, name)]
def _mako_generate_namespaces(context):
    pass
def _mako_inherit(template, context):
    _mako_generate_namespaces(context)
    return runtime._inherit_from(context, u'base.mako', _template_uri)
def render_body(context,**pageargs):
    context.caller_stack.push_frame()
    try:
        __locals = dict(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        # SOURCE LINE 1
        context.write(u'\n\n\t<ul id="undonetodos">\n')
        # SOURCE LINE 5
        for task in c.tasks:
            # SOURCE LINE 6
            context.write(u'\t\t<li>\n\t\t\t<form action="complete" method="post" accept-charset="utf-8">\n\t\t\t\t<input type="hidden" name="task_id" value="')
            # SOURCE LINE 8
            context.write(unicode(task.id))
            context.write(u'" id="task_id">\n\t\t\t\t<input type="submit" name="submit" value="Complete" id="submit">\n\t\t\t\t')
            # SOURCE LINE 10
            context.write(unicode(task.task))
            context.write(u'\n')
            # SOURCE LINE 12
            context.write(u'\t\t\t\t\t<span style="font-size:9px;"><b>Tags:</b> \n')
            # SOURCE LINE 13
            for tag in task.tags:
                # SOURCE LINE 14
                context.write(u'\t\t\t\t\t\t')
                context.write(unicode(tag.name))
                context.write(u', \n')
            # SOURCE LINE 16
            context.write(u'\t\t\t\t\t</span>\n\t\t\t\t\t\t\n\t\t\t</form>\n\t\t</li>\t\n')
        # SOURCE LINE 21
        context.write(u'\t</ul>\n\t<input type="submit" name="submit" value="complete task" id="submit">\n</form>\n\n<p>\n\tAdd a Task:<br />\n')
        # SOURCE LINE 28
        context.write(u'\t<form action="/add" method="POST">\n\t\tTask: <input type="text" name="newtask" value="" id="newtask">\n\t\t<br />Tags: <input type="text" name="newtags" value="" id="newtags">\n\t\t<input type="submit" name="submit" value="Add Tag" id="submit">\n\t</form>')
        return ''
    finally:
        context.caller_stack.pop_frame()


